|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectga.core.algorithm.interactive.AbstractSIGA<T>
ga.core.algorithm.interactive.SIGA<T>
T
- The generic type of individuals.public class SIGA<T extends IIndividual<T>>
Steady-State simple interactive genetic algorithm.
Field Summary | |
---|---|
private static int |
CRITICAL_WHILE_ITERATIONS
|
private static java.util.logging.Logger |
LOGGER
|
Fields inherited from interface ga.core.GA |
---|
KEY_EVALUATED_INDIVIDUALS_MIN_COUNT, KEY_GENOME_MAX_LENGTH, KEY_GENOME_MIN_LENGTH, KEY_INIT_INDIVIDUAL, KEY_INIT_INDIVIDUAL_PERCENTAGE, KEY_INTERVAL_FITNESS_MAX_WIDTH, KEY_VALIDATION_SPACE |
Constructor Summary | |
---|---|
SIGA(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
boolean useEliteStrategy)
Creates a new steady state SIGA. |
|
SIGA(IPopulation<T> population,
IInteractiveFitnessEvaluator<T> evaluator,
ISelector<T> selector,
IMutationOp<T> mutateOperator,
ICrossoverOp<T> crossoverOperator,
IValidator<T> validator,
boolean useEliteStrategy,
IGALogger<T> gaLogger)
Creates a new steady state SIGA. |
Method Summary | |
---|---|
void |
individualEvaluated(T ind)
This will be notified when an evaluator has evaluated the individual. |
void |
newIndividualRequested()
This will be notified when a evaluator demands a new individual for evaluation. |
void |
step()
Do one step. |
Methods inherited from class ga.core.algorithm.interactive.AbstractSIGA |
---|
checkThread, exit, getContext, getCrossoverOp, getEvaluatingIndividuals, getEvaluator, getGALogger, getGeneration, getMutationOp, getPopulation, getSelector, getValidator, incGeneration, init, isUseEliteStrategy, isValidate, setValidate, setValidator |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.util.logging.Logger LOGGER
private static final int CRITICAL_WHILE_ITERATIONS
Constructor Detail |
---|
public SIGA(IPopulation<T> population, IInteractiveFitnessEvaluator<T> evaluator, ISelector<T> selector, IMutationOp<T> mutateOperator, ICrossoverOp<T> crossoverOperator, boolean useEliteStrategy)
population
- Population for the GA.evaluator
- The automatic evaluator.selector
- The selector.mutateOperator
- The mutation operator.crossoverOperator
- The crossover operator.useEliteStrategy
- Use elite strategy or not.public SIGA(IPopulation<T> population, IInteractiveFitnessEvaluator<T> evaluator, ISelector<T> selector, IMutationOp<T> mutateOperator, ICrossoverOp<T> crossoverOperator, IValidator<T> validator, boolean useEliteStrategy, IGALogger<T> gaLogger)
population
- Population for the GA.evaluator
- The automatic evaluator.selector
- The selector.mutateOperator
- The mutation operator.crossoverOperator
- The crossover operator.validator
- The validatoruseEliteStrategy
- Use elite strategy or not.gaLogger
- The ga logger.Method Detail |
---|
public void step()
GA
public void newIndividualRequested()
EvaluationListener
public void individualEvaluated(T ind)
EvaluationListener
ind
- The individual that has been evaluated.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |